FluentForm\App\Services\Form\FormValidationService B

Total Complexity 99
Dependencies 10
Dependents 1
Total lines 737
Lines of code 510
Logical lines of code 221
Comment lines 105
Methods 24
Properties 3

Methods 24

Method Rating Maintainability Complexity Lines of code
validateSubmission()
B
30 19 133
checkIpRestriction()
S
58 7 13
handleRestrictedSubmission()
S
54 6 23
validateReCaptcha()
S
50 5 30
checkCountryRestriction()
S
59 6 13
handleDenyEmptySubmission()
S
54 5 20
containsRestrictedKeywords()
S
58 5 15
delegateValidations()
S
59 5 13
checkKeywordsMatching()
S
61 5 13
validateHCaptcha()
S
51 4 27
validateTurnstile()
S
52 4 26
isSpam()
S
51 3 33
validateNonce()
S
53 3 24
validateRestrictions()
S
53 3 23
preventMaliciousAttacks()
S
53 3 22
getIpInfo()
S
57 3 17
getIpBasedOnCountry()
S
57 3 16
checkKeyWordRestriction()
S
56 2 18
handleSpamError()
S
62 3 10
__construct()
S
80 1 3
setForm()
S
81 1 3
validateInput()
S
78 1 3
setFormData()
S
81 1 3
throwValidationException()
S
66 1 9